/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jag4fun;

/**
 *
 * @author David
 */
public class Jag4fun {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Jag4fun main = new Jag4fun();
        main.printMessage(Language.ENGLISH);
        main.printMessage(Language.ESPANOL);
        main.printMessage(Language.FRANCES);
        main.printMessage(Language.ENGLISH);
    }
    
    void printMessage(Language language){
        String message = null;
        switch (language){
            case FRANCES:
                message = "Bonjour le monde";
                break;
            case ESPANOL:
                message = "Hola Mundo";
                break;
            default:
                message = "Hello World";
        }
        System.out.println(message);
    }
    enum Language {
        ENGLISH, FRANCES, ESPANOL
    }
}
